FROM sonatype/nexus:2.14.20-02

USER root
RUN echo "nexus.override.local.storage.whitelist=/sonatype-work/storage" >> /opt/sonatype/nexus/conf/nexus.properties